import request from "../../request";

const baseUrl = (id) => {
  return `/admin/maker/member` + (id ? `/${id}` : '')
}

// +---------------------
// + 创客会员
// +---------------------
export const AdminMakerList = (data) => {
  return request.get(baseUrl(), data)
}

export const AdminMakerBatch = (type, data) => {
  return request.post(baseUrl() + '/check/' + type, data)
}

export const AdminMakerInfo = (id, params) => {
  return request.get(baseUrl(id), params)
}

export const AdminMakerPut = (data) => {
  return request.put(baseUrl(), data)
}

export const AdminMakerDel = (params) => {
  return request.delete(baseUrl(), params)
}
